Newtouch.Window = function(windowContainerId) {

	if(typeof(windowContainerId)=="object"){
		this._window = $(windowContainerId);
	}else{
    	this._window = $("#"+windowContainerId);
    }
};

Newtouch.Window.prototype = {
	_window : null,
 
	open: function(){
		this._window.dialog("open");
	},
	close: function(){
		this._window.dialog("close");
	},
	setTitle: function(title){
		this._window.dialog('option', 'title' , title);
	}
}